<script setup lang='ts'>
import { ref } from 'vue';
let keywords = ref('')
const toGoodsList = () => [
  uni.navigateTo({ url: `/pages/goodsList/index?keywords=${keywords.value}` })
]
</script>
<template>
  <!-- 搜索框 -->
  <view class="search">
    <view class="input">
      <input type="text" style="width: 100%;" placeholder="搜索" v-model="keywords" />
      <icon type="search" :size="23" color="" @tap="toGoodsList" />
    </view>
  </view>
  <!-- 搜索内容 -->
</template>

<style lang='scss' scoped>
.search {
  padding: 20rpx 30rpx 20rpx;
  background-color: #fff;

  .input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64rpx;
    padding: 0 26rpx;
    color: #8b8b8b;
    font-size: 28rpx;
    border-radius: 32rpx;
    background-color: #f3f4f4;
  }
}
</style>
